﻿using Microsoft.AspNetCore.Mvc;
using Partner.Surround.Controllers;
using Microsoft.AspNetCore.Authorization;
using Partner.Surround.Fronts;

namespace Partner.Surround.Web.Controllers
{
    /// <summary>
    /// 前台控制器
    /// </summary>
    [AllowAnonymous]
    public class FrontController : SurroundControllerBase
    {
        /// <summary>
        /// 首页
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            ViewData["CurrentMenu"] = FrontMenuEnum.Index;
            return View();
        }

        /// <summary>
        /// 产品
        /// </summary>
        /// <returns></returns>
        public ActionResult Product()
        {
            ViewData["CurrentMenu"] = FrontMenuEnum.Product;
            return View();
        }

        /// <summary>
        /// 关于
        /// </summary>
        /// <returns></returns>
        public ActionResult About()
        {
            ViewData["CurrentMenu"] = FrontMenuEnum.About;
            return View();
        }

        /// <summary>
        /// 案例
        /// </summary>
        /// <returns></returns>
        public ActionResult Case()
        {
            ViewData["CurrentMenu"] = FrontMenuEnum.Case;
            return View();
        }

        /// <summary>
        /// 动态
        /// </summary>
        /// <returns></returns>
        public ActionResult News()
        {
            ViewData["CurrentMenu"] = FrontMenuEnum.News;

            return View();
        }

        /// <summary>
        /// 动态详情
        /// </summary>
        /// <returns></returns>
        public ActionResult NewsDetail()
        {
            ViewData["CurrentMenu"] = FrontMenuEnum.NewsDetail;

            return View();
        }
    }
}
